import * as Type from './mutation-types';
export default{
    //与上方 commit 中的 ‘increment' 相对应
    [Type.ADD](state) {
        state.count++;
    },
    [Type.REDUCE](state){
        state.count--;
    }
}